<html>
<body>
<script src="../build/artoolkit.debug.js"></script>
<script src="../js/artoolkit.api.js"></script>
<script>
(function() {
	/*
	 * This file tests for exported constants from Embind and WebIDL
	 */
	// console.log(Module.AR_MATRIX_CODE_TYPE.AR_MATRIX_CODE_3x3.value);

	//
	// Module.setPatternDetectionMode(Module.AR_MATRIX_CODE_TYPE.AR_MATRIX_CODE_4x4)

	// Embind Constants
	console.log("AR_DEBUG_DISABLE", Module.AR_DEBUG_DISABLE);
	console.log("AR_DEBUG_ENABLE", Module.AR_DEBUG_ENABLE);
	console.log("AR_DEFAULT_DEBUG_MODE", Module.AR_DEFAULT_DEBUG_MODE);
	console.log("AR_LABELING_WHITE_REGION", Module.AR_LABELING_WHITE_REGION);
	console.log("AR_LABELING_BLACK_REGION", Module.AR_LABELING_BLACK_REGION);
	console.log("AR_DEFAULT_LABELING_MODE", Module.AR_DEFAULT_LABELING_MODE);
	console.log("AR_DEFAULT_LABELING_THRESH", Module.AR_DEFAULT_LABELING_THRESH);
	console.log("AR_IMAGE_PROC_FRAME_IMAGE", Module.AR_IMAGE_PROC_FRAME_IMAGE);
	console.log("AR_IMAGE_PROC_FIELD_IMAGE", Module.AR_IMAGE_PROC_FIELD_IMAGE);
	console.log("AR_DEFAULT_IMAGE_PROC_MODE", Module.AR_DEFAULT_IMAGE_PROC_MODE);
	console.log("AR_TEMPLATE_MATCHING_COLOR", Module.AR_TEMPLATE_MATCHING_COLOR);
	console.log("AR_TEMPLATE_MATCHING_MONO", Module.AR_TEMPLATE_MATCHING_MONO);
	console.log("AR_MATRIX_CODE_DETECTION", Module.AR_MATRIX_CODE_DETECTION);
	console.log("AR_TEMPLATE_MATCHING_COLOR_AND_MATRIX", Module.AR_TEMPLATE_MATCHING_COLOR_AND_MATRIX);
	console.log("AR_TEMPLATE_MATCHING_MONO_AND_MATRIX", Module.AR_TEMPLATE_MATCHING_MONO_AND_MATRIX);
	console.log("AR_DEFAULT_PATTERN_DETECTION_MODE", Module.AR_DEFAULT_PATTERN_DETECTION_MODE);
	console.log("AR_USE_TRACKING_HISTORY", Module.AR_USE_TRACKING_HISTORY);
	console.log("AR_NOUSE_TRACKING_HISTORY", Module.AR_NOUSE_TRACKING_HISTORY);
	console.log("AR_USE_TRACKING_HISTORY_V2", Module.AR_USE_TRACKING_HISTORY_V2);
	console.log("AR_DEFAULT_MARKER_EXTRACTION_MODE", Module.AR_DEFAULT_MARKER_EXTRACTION_MODE);
	console.log("AR_MAX_LOOP_COUNT", Module.AR_MAX_LOOP_COUNT);
	console.log("AR_LOOP_BREAK_THRESH", Module.AR_LOOP_BREAK_THRESH);


	// Exported WebIDL constants
	console.log("AR_MATRIX_CODE_3x3", Module.AR_MATRIX_CODE_3x3);
	console.log("AR_MATRIX_CODE_3x3_HAMMING63", Module.AR_MATRIX_CODE_3x3_HAMMING63);
	console.log("AR_MATRIX_CODE_3x3_PARITY65", Module.AR_MATRIX_CODE_3x3_PARITY65);
	console.log("AR_MATRIX_CODE_4x4", Module.AR_MATRIX_CODE_4x4);
	console.log("AR_MATRIX_CODE_4x4_BCH_13_9_3", Module.AR_MATRIX_CODE_4x4_BCH_13_9_3);
	console.log("AR_MATRIX_CODE_4x4_BCH_13_5_5", Module.AR_MATRIX_CODE_4x4_BCH_13_5_5);

	console.log("AR_LABELING_THRESH_MODE_MANUAL", Module.AR_LABELING_THRESH_MODE_MANUAL);
	console.log("AR_LABELING_THRESH_MODE_AUTO_MEDIAN", Module.AR_LABELING_THRESH_MODE_AUTO_MEDIAN);
	console.log("AR_LABELING_THRESH_MODE_AUTO_OTSU", Module.AR_LABELING_THRESH_MODE_AUTO_OTSU);
	console.log("AR_LABELING_THRESH_MODE_AUTO_ADAPTIVE", Module.AR_LABELING_THRESH_MODE_AUTO_ADAPTIVE);

	console.log("AR_MARKER_INFO_CUTOFF_PHASE_NONE", Module.AR_MARKER_INFO_CUTOFF_PHASE_NONE);
	console.log("AR_MARKER_INFO_CUTOFF_PHASE_PATTERN_EXTRACTION", Module.AR_MARKER_INFO_CUTOFF_PHASE_PATTERN_EXTRACTION);
	console.log("AR_MARKER_INFO_CUTOFF_PHASE_MATCH_GENERIC", Module.AR_MARKER_INFO_CUTOFF_PHASE_MATCH_GENERIC);
	console.log("AR_MARKER_INFO_CUTOFF_PHASE_MATCH_CONTRAST", Module.AR_MARKER_INFO_CUTOFF_PHASE_MATCH_CONTRAST);
	console.log("AR_MARKER_INFO_CUTOFF_PHASE_MATCH_BARCODE_NOT_FOUND", Module.AR_MARKER_INFO_CUTOFF_PHASE_MATCH_BARCODE_NOT_FOUND);
	console.log("AR_MARKER_INFO_CUTOFF_PHASE_MATCH_BARCODE_EDC_FAIL", Module.AR_MARKER_INFO_CUTOFF_PHASE_MATCH_BARCODE_EDC_FAIL);
	console.log("AR_MARKER_INFO_CUTOFF_PHASE_MATCH_CONFIDENCE", Module.AR_MARKER_INFO_CUTOFF_PHASE_MATCH_CONFIDENCE);
	console.log("AR_MARKER_INFO_CUTOFF_PHASE_POSE_ERROR", Module.AR_MARKER_INFO_CUTOFF_PHASE_POSE_ERROR);
	console.log("AR_MARKER_INFO_CUTOFF_PHASE_POSE_ERROR_MULTI", Module.AR_MARKER_INFO_CUTOFF_PHASE_POSE_ERROR_MULTI);
	console.log("AR_MARKER_INFO_CUTOFF_PHASE_HEURISTIC_TROUBLESOME_MATRIX_CODES", Module.AR_MARKER_INFO_CUTOFF_PHASE_HEURISTIC_TROUBLESOME_MATRIX_CODES);

})();

</script>

</body>
</html>